﻿namespace Hotel.ModulesTest
{
    using ManagementModule = Hotel.Module.Management;
    using System.Collections.Generic;
    using Hotel.Module.Management;
    using Hotel.Module.Management.Models;
    using NUnit.Framework;

    [TestFixture]
    class GetOrderByIdTestClass
    {
        //TODO implement
        [Test]
        public void GetOrderByIdTest()
        {
            using (ManagementController m_ManagementController = Hotel.Web.Helpers.ServiceLocator.Instance.GetService(typeof(IManagement)) as ManagementController)
            {
                int _orderNumber = m_ManagementController.GetNewOrderNumber() - 1;
                Order _order = m_ManagementController.GetOrderByID(_orderNumber);

                Assert.IsNotNull(_order.Email);
            }
        }
    }
}
